Skip to content

FileBrowserHelper.getFileDetailInfo: Support more refined filtering#2668

Merged
XingY merged 1 commit intorelease25.9-SNAPSHOTfrom
25.9_fb_file_helper_info
Sep 5, 2025
Merged

FileBrowserHelper.getFileDetailInfo: Support more refined filtering#2668
XingY merged 1 commit intorelease25.9-SNAPSHOTfrom
25.9_fb_file_helper_info

Conversation

@labkey-nicka
Copy link
Contributor

@labkey-nicka labkey-nicka commented Sep 3, 2025

Rationale

The recently added FileBrowserHelper.getFileDetailInfo() test utility now supports more filtering mechanisms. With this we can refine our test scenarios to find the exact file expected.

Related Pull Requests

Changes

  • Update getFileDetailInfo() to:
    • Optionally filter by the "RelativeFolder" column value.
    • Throw an error if more than one file matches the specified filter(s).
    • be statically defined.


// "RelativeFolder" is not a filterable column on the query table
if (relativeFolder != null)
fileInfos = fileInfos.stream().filter(f -> relativeFolder.equals(f.relativeFolder)).toList();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe case insensitive check? Also is it worth checking with leading and trailing "/" ignored?

@XingY XingY merged commit cf3937f into release25.9-SNAPSHOT Sep 5, 2025
8 checks passed
@XingY XingY deleted the 25.9_fb_file_helper_info branch September 5, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants